package net.hn.hnms.biz.job.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Author: PanSX
 * Date: 2023/3/23 17:29
 */
@Entity
@Table(name = "car_inspect", schema = "inspect", catalog = "inspect")
@Data
public class CarInspect {
    @Id
    private Integer id;
    private String vehicleCode;//车辆编号
    private String vehicleTypeName;//车辆类别名称
    private String personName;//司机姓名
    private Integer step;//当前步骤
    private Integer totalStep;//总步骤
    private String checkTypeName;//检测类别名称
    private Boolean result;//检测结果,true通过，false未通过
    private Boolean expired;//是否失效，true:失效，false:有效
    private String statusName;//审批状态
    private String checkPersonName;//检测人
    private String areaName;//区域名称
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm",
            timezone = "Asia/Shanghai"
    )
    private Date checkTime;//检测时间
    @Column(length = 5000)
    private String detail;//详情json

}
